<template>
  <div>
    <el-main>
      <el-table
        :data="tableData"
        border
        :header-cell-style="{ background: '#1D8CE0', color: '#ffffff' }"
        @row-click="getInterview"
      >
        <el-table-column fixed="left" prop="name" label="姓名" width="80">
        </el-table-column>

        <el-table-column prop="department" label="应聘部门" width="120">
        </el-table-column>

        <el-table-column prop="post" label="应聘岗位" width="120">
        </el-table-column>

        <el-table-column prop="mobile" label="电话" width="120">
        </el-table-column>

        <el-table-column prop="email" label="邮箱"> </el-table-column>

        <el-table-column
          prop="interviewdate"
          label="面试时间"
          width="190"
        ></el-table-column>

        <el-table-column
          prop="username"
          label="当前状态"
          width="80"
        ></el-table-column>
      </el-table>
    </el-main>
  </div>
</template>

<script>
export default {
  props: ["tableData"],

  methods: {
    getInterview(row) {
      this.$bus.$emit("getInterview", row);
    },

    handleCurrentChange(val) {
      this.$emit("handleCurrentChange", val);
    },

    handleSizeChange(val) {
      this.$emit("handleSizeChange", val);
    },
  },
};
</script>

<style lang="scss" scoped>
</style>